package main

import (
	"context"
	"fmt"
	"gitee.com/openeuler/go-gitee/gitee"
)

// e5613a45dc64944d0c5127b473340f65
func main() {
	cfg := gitee.NewConfiguration()
	client := gitee.NewAPIClient(cfg)
	//gitee.ContextAccessToken = "e5613a45dc64944d0c5127b473340f65"
	//GetV5ReposOwnerRepoReleasesLatestOpts := &gitee.GetV5ReposOwnerRepoReleasesLatestOpts{
	//	AccessToken: optional.NewString("e5613a45dc64944d0c5127b473340f65"),
	//}
	ctx := context.Background()
	var release gitee.Release
	release, res, err := client.RepositoriesApi.GetV5ReposOwnerRepoReleasesLatest(ctx, "wailscn", "wails-plugin-update", nil)
	fmt.Println(res)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(release)

}
